package com.bahiaapk.dto;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Media {

	private Long id;
	
	private String title;
	
	private Date date;
	
	private String urlImage;
	
	private String urlMedia;

	private String content;
	
	private Integer active;

	private String time;
	
	private TypeMedia type;
	
	private Integer sent;

	
	public String getUrlMedia() {
		return urlMedia;
	}

	public void setUrlMedia(String urlMedia) {
		this.urlMedia = urlMedia;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getDate() {
		return date;
	}
	
	public String getDateFormat(){
		SimpleDateFormat dt = new SimpleDateFormat("d  MMMM  yyyy - HH:mm",new Locale("pt", "BR")); 
		return dt.format(date); 
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getUrlImage() {
		return urlImage;
	}

	public void setUrlImage(String urlImage) {
		this.urlImage = urlImage;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getActive() {
		return active;
	}

	public void setActive(Integer active) {
		this.active = active;
	}

	public TypeMedia getType() {
		return type;
	}

	public void setType(TypeMedia type) {
		this.type = type;
	}

	public Integer getSent() {
		return sent;
	}

	public void setSent(Integer sent) {
		this.sent = sent;
	}
	
	
	
}
